package com.wz.project.system.jpaTest.controller;

import com.wz.project.system.jpaTest.service.JpaTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zn kai
 * @create 2021-08-17 8:54
 */
@RestController
@RequestMapping("/jpa")
public class JpaTestController {
    @Autowired
    JpaTestService jpaTestService;


    @GetMapping("/all")
    public int all(){
        jpaTestService.jpaTest();
        return 1;
    }
}
